import 'package:tender_flutter/generated/json/base/json_convert_content.dart';
import 'package:tender_flutter/generated/json/base/json_field.dart';

class CommonListTagModel with JsonConvert<CommonListTagModel> {
  int pageNum;
  int pageSize;
  int total;
  int pages;
  @JSONField(name: "list")
  List<CommonTagModel> xList;
  bool isFirstPage;
  bool isLastPage;
}

class CommonTagModel with JsonConvert<CommonTagModel> {
  @JSONField(name: "id")
  String strId;
  String key;
  String title;
  String value;
  bool isSelected;

  int get id => strId != null ? int.parse(strId) : 0;

  set id(int value) => strId = value.toString();

  CommonTagModel({this.strId, this.title, this.value, this.isSelected});
}
